﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FileMain.aspx.cs" Inherits="MyOA.UI.File.FileManage.FileMain"  MasterPageFile="~/File/FileManage/File.Master"%>
<asp:Content ID="Content1" ContentPlaceHolderID="cphFileTitle" runat="server">
<script>
    function searchClick() {
        parent.document.location.href = "../FileSearch.aspx";
        return false;
       }
</script>
<asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <TABLE cellSpacing="0" cellPadding="0"  border="0"  width="99%">
										<TR>
											<TD  >
												<asp:imagebutton id="imgbtnBack" Width="56px" Height="20px" onmouseover="this.src='../../images/file/fmback1.gif';" onmouseout="this.src='../../images/file/fmback.gif';" runat="server" ImageUrl="../../images/file/fmback.gif" ImageAlign="AbsBottom" ToolTip="后退一步" OnClientClick="window.history.go(-1);return false;"></asp:imagebutton></TD>
											<TD>
												<asp:imagebutton id="imgbtnUp" Width="31px" Height="20px"  
                                                    onmouseover="this.src='../../images/file/fmup1.gif';" 
                                                    onmouseout="this.src='../../images/file/fmup.gif';" runat="server" 
                                                    ImageUrl="../../images/file/fmup.gif" ImageAlign="AbsBottom" ToolTip="返回" 
                                                    onclick="imgbtnUp_Click"></asp:imagebutton></TD>
											<TD >
												<asp:imagebutton id="imgbtnSeach" Width="58px" Height="20px"  onmouseover="this.src='../../images/file/fmseach1.gif';" onmouseout="this.src='../../images/file/fmseach.gif';" runat="server" ImageUrl="~/images/file/fmseach.gif" ImageAlign="AbsBottom" ToolTip="搜索文件或文件夹" OnClientClick="return searchClick()"></asp:imagebutton></TD>
											<TD width="33"><asp:imagebutton id="imgbtnFolderShow"  Width="67px" Height="22px"  runat="server" ImageAlign="AbsBottom" ImageUrl="../../images/file/fmfoldershow1.gif"></asp:imagebutton></TD>
											<TD width="33"><asp:imagebutton id="imgbtnNewFolder"  Width="22px" Height="20px"  
                                                    onmouseover="this.src='../../images/file/fmnewfolder1.gif';" 
                                                    onmouseout="this.src='../../images/file/fmnewfolder.gif';" runat="server" 
                                                    ImageAlign="AbsBottom" ImageUrl="../../images/file/fmnewfolder.gif" 
                                                    ToolTip="新增文件夹"   
                                                    onclick="imgbtnNewFolder_Click"></asp:imagebutton></TD>
											<TD ><asp:imagebutton id="imgbtnNewFile" Width="22px" Height="20px"  
                                                    onmouseover="this.src='../../images/file/fmnewfile1.gif';" 
                                                    onmouseout="this.src='../../images/file/fmnewfile.gif';" runat="server" 
                                                    ImageAlign="AbsBottom" ImageUrl="../../images/file/fmnewfile.gif" 
                                                    ToolTip="新增文件"    
                                                    onclick="imgbtnNewFile_Click"></asp:imagebutton></TD>
											<TD ></TD>
											<TD  style="width: 91%"></TD>
										</TR>
									</TABLE>
				</ContentTemplate></asp:UpdatePanel>					
	<script type="text/javascript">
	    var Alert=ymPrompt.alert;
        var Error=ymPrompt.errorInfo;
       
	</script>


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphFileContent" runat="server">
    <div class="content">
        
        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>
        <div class="divAddress"><span class="spanAddress">地址：</span><asp:TextBox ID="txtAddress" 
                runat="server" Height="19px" Width="383px" Enabled="false"></asp:TextBox>
        </div>
        
        <div>
            <table style="text-align:center;width:98%; padding:0px; margin:0px; font-size:12px;" border="0" align="center" cellpadding="0" cellspacing="1"  bgcolor="#CECECE">
                <asp:Repeater ID="rpFileInfo" runat="server">
                
                    <HeaderTemplate>
                        <tr style="margin:0px">
                            <td height="26" background="../../images/tab_14.gif" >名称</td>
                            <td  background="../../images/tab_14.gif" >类型</td>
                            <td  background="../../images/tab_14.gif" >备注</td>
                            <td background="../../images/tab_14.gif" >所有者</td>
                            <td  background="../../images/tab_14.gif" >创建时间</td>
                            <td background="../../images/tab_14.gif" >详细</td>
                             <td background="../../images/tab_14.gif" >删除</td>
                      
                        </tr>
                    </HeaderTemplate>
                    
                    <ItemTemplate>
                          <tr onmousemove="this.style.backgroundColor='white';this.style.cursor='hand'" onmouseout="this.style.backgroundColor='#66CCFF'" bgcolor="#66CCFF" height="26">
                            <td width="16%"><%#Eval("filesname") %></td>
                            <td width="10%">
                                <img alt="" src='<%#Eval("FileType.FileTypeImage") %>' /></td>
                            <td width="26%"><%#Eval("remark") %></td>
                            <td width="16%"><%#Eval("FileOwner.UserName")%></td>
                            <td width="16%"><%#Eval("createdate") %></td>
                            <td width="8%">
                                <asp:LinkButton ID="lbtnDetail" runat="server" OnClick="lbtnDetail_Click" CommandName='<%#Eval("fileId") %>' CommandArgument='<%#Eval("FileType.FileTypeId") %>'>详细</asp:LinkButton></td>
                            <td width="8%">
                                <asp:LinkButton ID="lbtnDelete" runat="server" CommandName='<%#Eval("fileId") %>' OnClientClick="return confirm('你确实要删除吗？')" OnClick="lbtnDelete_Click">删除</asp:LinkButton>
                            </td>
                        </tr>
                        
                        
                   </ItemTemplate>
            
           
                </asp:Repeater>
            </table>
            
        </div>
        </ContentTemplate> </asp:UpdatePanel>
    </div>

</asp:Content>
